package com.xxx.blog.service;

import com.xxx.blog.entity.Books;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author WangXJ
 * @since 2021-08-08
 */
public interface BooksService extends IService<Books> {
    List showAll();
    List<Books> findNewBook();
    List<Books> findNewByType(int currentPage,int size,int type);
    Map<String,Object> findAllByType(int currentPage, int size, int type);
    Books findBookById(int bookId);
    List<Books> findBookByName(String bName);
}
